package com.anne.fish.service.impl;

import java.util.List;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.anne.fish.dao.AreaDao;
import com.anne.fish.model.Area;
import com.anne.fish.service.AreaManager;

@Service("areaManager")
@WebService(serviceName = "AreaService", endpointInterface = "com.anne.fish.service.AreaManager")
public class AreaManagerImpl extends GenericManagerImpl<Area, Long> implements AreaManager {
    AreaDao areaDao;

    @Autowired
    public AreaManagerImpl(AreaDao areaDao) {
        super(areaDao);
        this.areaDao = areaDao;
    }

	public List<Area> findByParentId(Long pid) {
		// TODO Auto-generated method stub
		return this.areaDao.findByParentId(pid);
	}
}